 <div class="new_bd clearfix">
 		<div class="cart-litad spbg2">
            <strong>WOW!</strong>
            <span>
                <span>Free Shipping</span>
                <span class="spbg2">Free Returns</span>
                <span class="spbg2">Free 365 Day Return Policy</span>
                <span class="spbg2">24/7 Customer Service</span>
            </span>
        </div>
       <div class="new_mn clearfix">
    		<b class="spbg2 corner tl"></b>
    		<b class="spbg2 corner tr"></b>
    		<b class="spbg2 corner bl"></b>
    		<b class="spbg2 corner br"></b>    		
    		<div style="padding:10px 10px 0px 20px;">To ensure smooth transaction, please complete the payment within 48 hours. Otherwise, you will need to make a new order. </div>
            <h2 class="titlebar">SHIPPING ADDRESS</h2>
            <input type="hidden" name="address_id" value="-1"></input>
            <div class="order-ship-addr clearfix" id="address_list">            	
            <?php if ($this->addressArray):?>
            <?php foreach ($this->addressArray as $v):?>
            <div class="ship-adr-item spbg" id="address_<?php echo $v['addressid'];?>">
                <div>
                    <input class="addr-btn1 spbg" type="button" value="SHIP TO THIS ADDRESS" onclick="GGSHOP.address.setAddress(<?php echo $v['addressid'];?>)"/>
                    </div>
                    <div><strong><?php if ($v['name'] != "''") {echo $v['name'];}?></strong></div>
                    <div><?php echo $v['content'];?></div>
                    <div>
                    <?php 
                    for($i=0;$i<count($this->fenleiArray);$i++) {
                    	if ($this->fenleiArray[$i]['flid'] == $v['location_id']) {
                    		echo $this->fenleiArray[$i]['en_flname'];
                    	}
                    }
                    ?>
                    </div>
                    <div>Phone:<?php echo $v['phone'];?> Post Code:<?php echo $v['post_code'];?></div> 
                    <div>Email:<?php echo $v['email'];?></div>                    
                    <div class="ship-edit-del">
                    <input class="addr-btn2 spbg" type="button" value="Edit" onclick="GGSHOP.address.showEdit(<?php echo $v['addressid'];?>);"/>&nbsp;&nbsp;<input class="addr-btn2 spbg" type="button" value="Delete" onclick="GGSHOP.address.deleteAddress(<?php echo $v['addressid'];?>);"/>
                    </div>
                </div>
                <div class="ship-adr-item spbg" id="address_edit_<?php echo $v['addressid'];?>" style="display: none;">
                    <div>Full Name: <input type="text" name="name" value="<?php echo $v['name'];?>"/></div>
                    <div>Address: <input type="text" name="address" value="<?php echo $v['content'];?>"/></div>                    
                    <div>Country: 
                    <select name="state">
                           <option value="0">select your country</option>
                           <option value="599">United States(US)</option>
                           <option value="598">United Kingdom(GB)</option>
                           <option value="393">Australia(AU)</option>
                           <option value="419">Canada(CA)</option>
                           <option value="450">France(FR)</option>
                           <option value="456">Germany(DE)</option>
                           <option value="459">Greece(GR)</option>
                           <option value="563">Spain(ES)</option>
                           <option value="578">Sweden(SE)</option>
                           <option value="0">------------------------------------</option>
                    	<?php for($i=0;$i<count($this->fenleiArray);$i++):?>
							<option value="<?=$this->fenleiArray[$i]['flid']?>" <?php if ($this->fenleiArray[$i]['flid'] == $v['location_id']) {echo 'selected';}?>><?=$this->fenleiArray[$i]['en_flname']?></option>
						<?php endfor;?>
                        </select>	                       
                    </div>
                    <div>State: <input type="text" name="state1" value="<?php echo $v['state'];?>"/></div>
                    <div>City: <input type="text" name="city" value="<?php echo $v['city'];?>"/> Post Code: <input type="text" name="post_code" value="<?php echo $v['post_code'];?>"/></div>
                    <div>Phone: <input type="text" name="phone" value="<?php echo $v['phone'];?>"/> Email: <input type="text" name="email" value="<?php echo $v['email'];?>" /></div>
                    <div class="ship-edit-del">
                    <input class="addr-btn2 spbg" type="button" value="Confirm" onclick="GGSHOP.address.confirmEdit(<?php echo $v['addressid'];?>);"/>&nbsp;&nbsp;<input class="addr-btn2 spbg" type="button" value="Cancel" onclick="GGSHOP.address.hideEdit(<?php echo $v['addressid'];?>);"/>
                    </div>
                </div>
            <?php endforeach;?>           
            <?php endif;?>            
            </div>
            <div class="add-new-shipping">
            	<input class="addr-btn1 spbg" type="button" value="ADD NEW ADDRESS" onclick="GGSHOP.address.toggle();"/>
            </div>
            <div id="address_edit_0" style="display: none;">
            <form action="/product-payorder?id=0" method="post" id="add_new_address">
	            <div class="order-ship-adrInput">
	            	<div class="clearfix"><label>*FULL NAME:</label><input class="o-s-input" type="text" name="name" /></div>
	                <div class="clearfix"><label>*PHONE NUMBER:</label><input class="o-s-input" type="text" name="phone"/></div>
	                <div class="clearfix adress-tip-div"><label>*SHIPPING ADDRESS:</label><input class="o-s-input" type="text" name="address"/><span class="address-tips">example:apartment,suite,unit,building,floor</span></div>
	                <div class="clearfix"><label>*CITY:</label><input class="o-s-input" type="text" name="city"/></div>
	                <div class="clearfix">
	                	<label>*COUNTRY:</label>
	                    <select name="state">
	                    	<option value="0">select your country</option>
                           <option value="599">United States</option>
                           <option value="598">United Kingdom</option>
                           <option value="393">Australia</option>
                           <option value="419">Canada</option>
                           <option value="450">France</option>
                           <option value="456">Germany</option>
                           <option value="459">Greece</option>
                           <option value="563">Spain</option>
                           <option value="578">Sweden</option>
                           <option value="0">------------------------------------</option>
	                    	<?php for($i=0;$i<count($this->fenleiArray);$i++):?>
								<option value="<?=$this->fenleiArray[$i]['flid']?>"><?=$this->fenleiArray[$i]['en_flname']?></option>
							<?php endfor;?>
	                    </select>
	                </div>
	                <div class="clearfix">
	                	<label>*STATE:</label>
	                    <input class="o-s-input" type="text" name="state1"/>
	                </div>
	                <div class="clearfix"><label>*POSTCODE:</label><input class="o-s-input" type="text" name="post_code"/></div>
	                <div class="clearfix"><label>*EMAIL:</label><input class="o-s-input" type="text" name="email" value="<?php echo $this->email;?>"/></div>
	                <div class="clearfix o-save-adr"><input type="checkbox" checked="checked" name="islog" value="1"/>Save this shipping address for future orders</div>
	            </div>                        
            	<div class="submit-my-order"><input class="addr-btn1 spbg" type="button" value="SHIP TO THIS ADDRESS" style="font-size: 10px;" onclick="GGSHOP.address.setAddress(0);"/> <a href="#" onclick="return GGSHOP.address.cancelAddress();">Cancel</a></div>
            </form>
            </div>
            <div id="info"></div>
            <?php if (!$this->addressArray):?>
            	<script type="text/javascript">
	            	GGSHOP.address.toggle();
					$('.add-new-shipping').hide();
            	</script>
            <?php endif;?>
        </div>
    </div>
    <input type="hidden" value="<?php echo $this->useCoupon?>" name="usecoupon1" />
    <input type="hidden" value="<?php echo $this->useCouponCode?>" name="usecouponcode1" />